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

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

Domanda

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();
È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top