toHtml() function not converting apostrophes into special character format, messing up the format of our HTML formatting

Certified Senior Developer

Hi,

I am currently receiving an error when trying to convert free text from a paragraph into an html, simply because the single apostrophe (') does not convert to a special character when trying to create html formats used to create a microsoft document and convert it to pdf. The document either shows the escape character of ' or we receive an exception error in the process model. I am using the smart service Configure DocX From Dynamic Template. I have been using the toHtml() function to convert all text into html format, but only receive this error for sing apostrophes. Any help would be useful. Thank you.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Is it not possible to sanitize user input text at generation time?  I'm unfamiliar with the issue caused by apostrophes and toHtml(), however I have extensive experience doing manual workarounds to deal with other special characters (particularly ampersands and gt/lt signs) given their propensity to mess up Word Docx files when passed into the older Word from Template node.

    Do you happen to have a sample starting / resulting text (and perhaps also "desired result text") that's causing you these issues?  Otherwise I'm finding myself a little unclear on what exactly you're up against.

Reply
  • 0
    Certified Lead Developer

    Is it not possible to sanitize user input text at generation time?  I'm unfamiliar with the issue caused by apostrophes and toHtml(), however I have extensive experience doing manual workarounds to deal with other special characters (particularly ampersands and gt/lt signs) given their propensity to mess up Word Docx files when passed into the older Word from Template node.

    Do you happen to have a sample starting / resulting text (and perhaps also "desired result text") that's causing you these issues?  Otherwise I'm finding myself a little unclear on what exactly you're up against.

Children
No Data