Form html entities not rendering as expected
See original GitHub issue<input type="text" value="x<y" />
<textarea>x<y</textarea>
The two above standard html input or textarea render html entities values as x<y
If I data-link input or textarea then these render as x<y
(not expected).
val=“x<y
”
<input type="text" data-link="val" />
or <input type="text" data-link="{:val}" />
<textarea data-link="val"></textarea>
I tried using a converter using $.parseHTML()…but that returns an object which cannot be used.
Is this by design or am I simply missing something?
Is there anyway to render html entities like x<y without attaching a html editing widget (which is overkill here)?
Thanks
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
PHP htmlentities not working even with parameters
My guess is that the input data is not properly encoded as UTF-8 and the function is returning an empty string. (Assuming that...
Read more >Certain HTML entities (e.g. shapes and arrows) not rendering ...
Actual Results: The entities are not rendered as the glyphs/symbols they represent. There's a gap where it should belong, but the symbol isn't...
Read more >Why are special characters not rendering in emails?
Solution. Convert all special characters to HTML entities. You can use an HTML Character Converter such as provided by Email on Acid. For...
Read more >Inserting HTML entities in a code or no format macro converts ...
Inserting HTML entities in a code or no format macro converts the characters · Issue Summary · Steps to Reproduce · Expected Results...
Read more >HTML Entities - W3Schools
Reserved characters in HTML must be replaced with character entities. ... Disadvantage of using an entity name: Browsers may not support all entity...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The next update will include the above encode and unencode converters, to facilitate secure approaches to inserting and removing HTML data from users/the server. Marking this as feature request.
This has been fixed in release v0.9.91.