How To Replace Something with New Contents in Page

Posted by Agung Pambudi in ,
I added a new 'trans' transformation element , it will replace something with new contents in page.

the 'trans' element has Regex script to transform original html :

<P>&nbsp;</P>
replace <P>&nbsp;</P><hr>
<P>c/o E\. Höpli und S\. Oehler</P>
replace

Afterwards, "c/o E. Höpli und S. Oehler" is replaced by empty string, the order of paragraph will keep normal ones ,

and the 'Project' element has new XPath where extending <P> until reach <hr>, therefore, multiple paragraphs can be captured.

//H3/P[8][Span('hr')]


No comments:

Post a Comment