javascript - Insulating CDATA value from html -


i have field in grid following value: "{<dbid>{d7e362f0-2333-4bd0-8159-85e6e26ff6b0}<dbid>}" (see how being parsed in browser), don't see xml tag brackets, value seen below verbatim straight db.

loaded via ajax this

<cell style="margin-right:4px;"><![cdata["{<dbid>{d7e362f0-2333-4bd0-8159-85e6e26ff6b0}<dbid>}"^javascript:openalarmdetail(""{<dbid>{d7e362f0-2333-4bd0-8159-85e6e26ff6b0}<dbid>}"");^_self]]></cell> 

the carats dhtmlx create hyperlink. though using dhtmlx have not tagged dhtmlx, since don't think problem dhtmlx specific.

the value gets transfered ok, when displayed in grid tags gone , when ask value of cell, looks this:

"{<dbid>{3c59e779-57c0-4f48-900e-e2a256e37d2f}<dbid>}"</dbid></dbid>^javascript:openalarmdetail(""{<dbid>{3c59e779-57c0-4f48-900e-e2a256e37d2f}<dbid>}"");^_self 

i.e. has closing tags attached it.

how insulate value prevent being parsed further html, thought double quotes supposed trick.

cdata xml “feature”, has no meaning when content parsed html.

if sole purpose here have “tags” not interpreted such browser, write < , > &lt; , &gt;.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -