wocommunity / wolips

wolips
53 stars 53 forks source link

Component editor is confused by escaped backslash #28

Open darkv opened 12 years ago

darkv commented 12 years ago

If you have a binding with a text value and want a backslash to appear on the final html you have to escape that backslash with another one:

<wo:textfield value="$aValue" onkeyup="if(/^.*\\w+.*$/.test(this.value){ alert('character found'); }" />

The component editor then shows lots of errors stating "<..> start tag is not found." for all following tags that are not self-closing.