why [removed] tag in js string is being validated

前端 未结 4 2000
深忆病人
深忆病人 2021-01-15 12:09

I have following page



    




        
4条回答
  •  花落未央
    2021-01-15 12:33

    You can either escape < and > by, respectively < and > or put the whole script in a CDATA section:

    rest of the html",  
                   someOtherAttribute:"some value"};
        obj(some.pageButtonScript);
    ]]>
    
    

提交回复
热议问题