Angular In-place Editor &

Hello Syncfusion-Team,


I am using the Syncfusion In-place Editor in my Angular app. When I put a value with the '&' sign, the '&' is automatically replaced with '&'. Is there a way to prevent this behaviour?


This is how i embed it in my HTML:

        <ejs-inplaceeditor
          mode="Inline"
          type="Text"
          [showButtons]="false"
          value="test & test"
        ></ejs-inplaceeditor>

Kind Regards,
Peter


3 Replies 1 reply marked as answer

VY Vinothkumar Yuvaraj Syncfusion Team December 21, 2022 01:35 PM UTC

Hi Peter Linecker,


Greetings from Syncfusion support.


We created a sample using your shared code. But we were unable to replicate your problem at our end. Please find the below video and sample for your reference.


Video : https://www.syncfusion.com/downloads/support/directtrac/general/ze/New_folder_(3)-2111045549.zip


Samplehttps://stackblitz.com/edit/angular-a23zc3?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts


Can you please share the below information to replicate your issue at our end?

  • Share your code or runnable sample.
  • Please share the replication procedure to check your issue at our end.
  • If possible, please share the video with your issue.



Regards,

Vinothkumar



PL Peter Linecker December 21, 2022 02:51 PM UTC

Hello Syncfusion-Team,


I looked through the documentation of the In-place Editor and found the property "enableHtmlSanitizer".

When you set this property to "false", my In-place Editor works the right way and the "&" is not formatted to "&amp;" anymore.


Kind Regards,
Peter


Marked as answer

VJ Vinitha Jeyakumar Syncfusion Team December 22, 2022 05:20 AM UTC

Hi Peter,

We are glad that your issue has been resolved. Please get back to us if you need any further assistance

Regards,
Vinitha

Loader.
Up arrow icon