Convert to plain HTML

Hi all, I’m currently using the ToHTML pack to convert a rich-text canvas cell to HTML. This HTML is then posted on to an external CMS, but before it’s migrated, I have to clean up the HTML to remove div tags, empty span tag, inline styles, etc.

Is there any way to have Coda clean it up, or generate plain HTML? I’ve tried using a few Regexreplace formulas but it’s not working for my needs.

Hi, welcome!

Regex is apparently not recommended to be used with html in that scenario - regex - Regular expression to remove HTML tags from a string - Stack Overflow

Use something like https://www.striphtml.com/ for now? If you want to automate it you’re looking at a custom pack

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.