Stop Dreamweaver converting find replace queries when loaded via dreamweaver.setUpComplexFindReplace

StackOverflow https://stackoverflow.com/questions/19129533

Question

I want a find/replace that matches the HTML encoded tab character 	 and replace it with a space.

When I load the following query via Dreamweaver's dreamweaver.setUpComplexFindReplace API function, the 	 is converted to a literal tab character, so no matches are made.

How do I stop the HTML encoded string from being converted?

dreamweaver.setUpComplexFindReplace('<dwquery>  <queryparams matchcase="false" ignorewhitespace="false" useregexp="false" wholeword="true" />  <find searchmode="document">    <qtext qname="&#9;" qraw="true"></qtext>  </find>  <replace action="replaceText" param1="" param2=""/></dwquery>');
dreamweaver.replaceAll();
Was it helpful?

Solution

In your qtext node, change the qname value from &#9; to &amp;#9.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top