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
m install -g html-entities HTH Jean Jourdain On Wednesday, January 26, 2022 at 2:42:25 AM UTC+1 kre...@kreme.com wrote: > 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

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

Re: Question about GREP search in XML files with weird CDATA fields

2020-02-24 Thread Miguel Perez
>> .*? >> And it works like a charm. >> >> But then I have this one source that formats its XML files with CDATA >> fields like this: >> >> >> >> >> In this example they are trying to say that the value *NAME* is

Re: Question about GREP search in XML files with weird CDATA fields

2020-02-24 Thread GP
> > > As you can see, there are two keys, but the very next line says *value* > for both of them. That is my main concern. > > I want *value1* for each item on the list, but its defining *key* is in > the line above with that CDATA formatting. > > Any ideas? >

Re: Question about GREP search in XML files with weird CDATA fields

2020-02-24 Thread Sam Hathaway
Can you give us a real-world example? I’m not clear on whether “key1” and “key2” literally appear in your document or if they are placeholders. In any case, you should probably use a tool that is designed to work with XML. Such a tool would take care of the CDATA sections for you and let you

Re: Question about GREP search in XML files with weird CDATA fields

2020-02-24 Thread ThePorgie
> > > > As you can see, there are two keys, but the very next line says *value* > for both of them. That is my main concern. > > I want *value1* for each item on the list, but its defining *key* is in > the line above with that CDATA formatting. > > Any ideas? > >

Re: Question about GREP search in XML files with weird CDATA fields

2020-02-24 Thread Miguel Perez
* for each item on the list, but its defining *key* is in the line above with that CDATA formatting. Any ideas? El lunes, 24 de febrero de 2020, 11:01:22 (UTC-6), ThePorgie escribió: > > Put "\1" (no quotes) in the replace field and then Extract with > > Will that work for

Re: Question about GREP search in XML files with weird CDATA fields

2020-02-24 Thread ThePorgie
alues using: > > .*? > And it works like a charm. > > But then I have this one source that formats its XML files with CDATA > fields like this: > > > > > In this example they are trying to say that the value *NAME* is *John > Appleseed*. Rather than

Question about GREP search in XML files with weird CDATA fields

2020-02-24 Thread Miguel Perez
Hi, I'm fairly new to RegEx and I need your help. I process many XML files in my job. Most of them are formatted correctly, that is: Value Value For those I search for values using: .*? And it works like a charm. But then I have this one source that formats its XML files with CDATA fields

CDATA in HTML5 Pattern Attribute

2011-08-26 Thread G. T. Stresen-Reuter
I was just wondering if anyone could clarify the rules for escaping greater than, less than, and ampersand characters in the HTML5 Pattern Attribute. I'm assuming they should be character entities such as amp; but was hoping someone else better informed could confirm this for me. Thanks a

Re: CDATA in HTML5 Pattern Attribute

2011-08-26 Thread LuKreme
G. T. Stresen-Reuter tedmaster...@gmail.com squawked out on Friday 26-Aug-2011@09:14:45 I was just wondering if anyone could clarify the rules for escaping greater than, less than, and ampersand characters gt; lt; amp; -- Well there are certain sections of New York, Major, that I wouldn't

CDATA

2009-08-19 Thread ScottH
As I understand it. to validate my code as XHTML, javascript that is not XHTML-legal has to be escaped as CDATA. I thought the proper CDATA open and close sequencess would be part of BBEdit, but I haven't found them and searching the usual BB help doesn't turn up any results for the string CDATA

Re: CDATA

2009-08-19 Thread G. T. Stresen-Reuter
On Aug 19, 2009, at 7:04 PM, ScottH wrote: As I understand it. to validate my code as XHTML, javascript that is not XHTML-legal has to be escaped as CDATA. I thought the proper CDATA open and close sequencess would be part of BBEdit, but I haven't found them and searching the usual BB help