Search code examples
regexmovabletype

Movable Type: How to replace " with "


I am trying to replace only " with " within EntryBody

I tried <mt:entrybody replace=""","&quot;"> but this seems to not work. Version is MT5.02 and I don't want to use <mt:entrybody encode_html="1">

What I am trying to do is import all entires using CSV(comma separated) format(clients request) and " (quotation mark) inside EntryBody gives me syntax errors. I can't use encode_html because this encodes links(<a href=""></a>) to entities and I don't want that.

Any advice?


Solution

  • One of these should work.

    "\"","&quot;"
    '"','&quot;'