Skip to Content
0
Former Member
Nov 24, 2005 at 09:40 AM

A question on post processing of generated html

20 Views

Hi friends,

I've been using bsp:findAndReplace for alot of my applications to add or replace html code. Alot of people say this is not a good practice, and I'm not sure why.

Anyway, I've come to the point where I cannot use fixed strings anymore as the "find" attribute.

Is there any way to do something like the following:

<bsp:findAndReplace 
find = '<table id="abc"> * </table>'
replace = '<table id="def"> * </table>'
>

where the "*" would represent any amount HTML code. I couldn't find anyone on this forum with this requirment, I think there are alot of uses for this, like it would make it alot easier to, for example, remove some <table> tags along with their correct </table> tag and not a </table> tag belonging to some other table.