Re: Convert to CDATA/XML?

2022-01-27 Thread @lbutlr
On 2022 Jan 26, at 10:11, jj wrote: > One possible approach is with node.js and the node module html-entities. Thanks, I was hoping for a simpler solution that didn't rely on something else to install and I will probably use htmlspecialchars() from php instead since that is currently in macOS

Re: Convert to CDATA/XML?

2022-01-26 Thread jj
Hi @lbutlr, One possible approach is with node.js and the node module html-entities . Create a BBEdit Text Filter with this snippet into ~/Library/Application Support/BBEdit/Text\ Filters/html_entities_to_xml_entities.js #!/usr/bin/env node

Convert to CDATA/XML?

2022-01-25 Thread @lbutlr
Is there a way to easily convert a block of HTML text with entities in, like into CDATA XML-compatible codes like ? The only thing I see in the manual for CDATA is > • Escape : This option controls whether BBEdit should convert > sections to normal text. -- If you have any young