45
Views
4
Comments
Solved
Text field returning HTML encoding when a user enters an apostrophe '
Application Type
Traditional Web

Hi All,

I have an issue on a Traditional application whereby when a user edits the contents of a text field the word manager's is displayed as manager's

How do I fix this? Do I need to wrap the text which is being passed to the field upon clicking edit in a decode function of some kind?

Thanks

2023-11-20 06-53-17
Neha Rathore
Solution

You can take HtmlRenderer from manage dependencies.


Hope this helps

Thanks

2023-11-20 06-53-17
Neha Rathore

Hi @JayPea,

You can you use DecodeHTML

In this you need to send your text as the input and KeepSpecialChar as false and you will get the result without these special characters.

Hope this helps

Thanks

2022-09-04 15-01-10
JayPea

Thanks @Neha Rathore , can you tell me where to find this function? Which dependency is it located in? I only have encode functions in my built in functions and nothing for decode?

2023-11-20 06-53-17
Neha Rathore
Solution

You can take HtmlRenderer from manage dependencies.


Hope this helps

Thanks

2022-09-04 15-01-10
JayPea

Thanks @Neha Rathore  so this is a server action.  I was hoping to just be able to wrap the input parameter on the block which pulls in the text for editing in some decode function. I guess I can't use it in that way.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.