Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christian Bekker Andersen 16 posts 126 karma points c-trib
    Aug 06, 2020 @ 13:30
    Christian Bekker Andersen
    0

    Umbraco is stripping special chars from label/textarea?

    I'm currently working on saving some data into umbraco from and external API.

    I save everything to labels (long string) since it should not be edited. (tested with textarea aswell)

    My problem is that when i wanna do equality check on the fields to decide if its up to date with data from API or not, i see that the field has stripped some special chars.

    In this exact case its \u0095, its gone after saving it via the contentservice. Here is a quick example to illustrate the issue:

    Example of difference after data being saved to umbraco and pulled back out

    Is there a way to either: Save it without it removing special chars. Or if not. A method i can call to sanitize my incomming data the same way as umbraco, so i can compare the content.

Please Sign in or register to post replies

Write your reply to:

Draft