The trick is to replace only between >...< pairs.
The beauty of TextPipe is that you can restrict a set of changes to any region,
using either a pattern, or other subsets like a line range, columns range, a set
of CSV fields etc,
Use a search/replace for the EasyPattern:
>[ 1+ chars ]<
and set the Action to 'Send Matching Text to Subfilter'.
Then, use a search/replace as a subfilters, finding " and replacing
with nothing or “
--- In textpipe-discuss@yahoogroups.com, "Doug C" <subscribe@...> wrote:
>
> This is probably so simple that it's been solved a dozen times, but I'm
> stuck. How do I remove quote marks from content that are interfering
> with correct parsing of XML?
>
> I have a lousy translation to XML(XHTML) that has decided that all
> quotation marks need to be translated as ".
>
> Which of course leaves me with text that looks a bit like this:
>
> <p>I would <span class="annoy_reader">never</span> reveal the name of
> the <span class="so_called">"quality"</span> product that put me in
> this position, but it lacks a certain flare.</p>
>
> What I want to do is make sure I replace the quotes around quality
> with... well, anything except what they currently are, really (but in
> this case, “ and ” respectively). And of course, I want to
> leave the other quote marks alone, since they're correct.
>
> This has to be such a common problem that solutions exist by the
> handful, yes?
>