ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: MarquisMark9 on April 07, 2017, 02:39:12 am

Title: Inline Editor, Typing "<" in Editor Causes Rest of Text to Disappear (Pro)
Post by: MarquisMark9 on April 07, 2017, 02:39:12 am
If you enter “a<b” (no quotes or spaces) into a text field the “<b” part will disappear because the grid thinks it is the beginning of an html element I think.  This is only an issue if the character after the < is text and the value will show up when you go into edit mode.  So I think it is a rendering issue with text being interpreted as html.

You can reproduce this in their demo apps (https://paramquery.com/demos) by typing a<b in the Shipping Address field on Inline Editing/Editors & Validation.
Title: Re: Inline Editor, Typing "<" in Editor Causes Rest of Text to Disappear (Pro)
Post by: paramvir on April 07, 2017, 12:47:07 pm
Since < is an html entity, you would need to encode it ( replace < with &lt; and > with &gt; ) in column.render callback.

I've marked to add inbuilt support for encoding html entities as future enhancement.

Thanks