Replace ampersand by html safe code problem

Comments

1 comment

  • Rainer Grabowski

    Hi Mike,

    first: It also doesn't work for the 4 others. If you replace <>'" by their entity they will be displayed as <>"' in calculation fields. 
    What you need is a zero-white-space before the semicolon. 
    You can either copy a zero-white-space to your clipboard (some websites offer that, just seach for it) and paste it before the semicolon or after the & -  or you use an encoded UTF:

    "Chip & Dale".replace(/&/g,"&amp​\u200B;")

    In Globiflow you can use the Unicode as HTML encoded  &#8203;  to update e.g a multiline text field (but it works only after the &)

    str_replace("&","&&#8203;amp;​​","Chip & Dale")

    Rainer

    1
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk