Frage

Hi i want to replace a token value in ant script with following string

<TagType Name="some name" param1="prefix=%s" param2="_default" />

since we cannot give directly '<','"','%' into an ant script, we need to use escape sequences like '&lt;','&quot;'..

Is there any online tool which can apply escape characters for a given string? I hope already there are tools for this :)


For a given string like this

<TagType Name="some name" param1="prefix=%s" param2="_default" />

I need escaped string like this

&lt;TagType Name=&quot;some name&quot; param1=&quot;prefix=%s&quot; param2=&quot;_default&quot; /&gt;
War es hilfreich?

Lösung

At last i found this online tool which does the job of xml escaping. http://www.freeformatter.com/xml-escape.html

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top