Hi everyone,I need to create a component which has some HTML code associated with javascript. In some scripting cases like one mentioned below, the component is not getting saved.{script language="javascript"}function testComp(){if ("one" == "one") && ("two" == "two"){... do some action ...}}{/script}&& is the root cause of the same, as it tries to check the entity just after & mark.To do a workaround, i tried to encapsulate the script within CDATA, but it tranforms the && to & a m p; & a m p ; (remove spaces) and get saved. However that makes my script non-executable.Any suggestions or pointers are all welcome.
HiThe possible solution that i have implemented at my end is to embedd the script externally by adding as an resource at page level.This will work.
&
.component
&&
&&