Thread

Quotes and invisible characters (from Word) mess up page

August 17, 2017 11:22am

Subscribe [2]
  • #1 / Aug 17, 2017 11:22am

    Terralemon's avatar

    Terralemon

    14 posts

    My client pastes the title of an entry into the title field of EE3. They initially write their articles in Word so they copy-paste from it.

    Unfortunately invisible characters or quotes are being added. They mess up our page in the website (a }” is being added.

    Can somebody please help us getting rid of this problem and make sure we get only clean titles so we can close this ‘bug’?

    Best regards,

    Harold (Terralemon)

  • #2 / Aug 23, 2017 1:30am

    SPC-Lesli

    22 posts

    Well, you could have an admin check the posts before they’re sent live and clean out all junky characters. And you could probably also have said admin do a search-and-replace.

    However, I think that it’s going to be easiest to train the users.

    After they’ve written their text in Word, have them copy-paste everything into Notepad (or any other simple text editor.) Then copy-paste from there to EE. Otherwise, you’ll always get some of the cruft and gunk that Word puts into text.

  • #3 / Aug 23, 2017 10:18am

    Derek Jones's avatar

    Derek Jones

    7176 posts

    Two other options:

    • turn off “Replace as you type” features in Word
    • paste with Shift+Ctrl+V (Paste Special) instead of just Ctrl+V, selecting “Text only” and “Convert smart quotes to straight quotes”

ExpressionEngine News

#eecms, #events, #releases