Jump to content

How to replace these things in HTML code?


spaze

Recommended Posts

I have an application to convert some HTML pages to work better on my ebook reader device. I need to replace two things:

 

All leading and trailing spaces between opening and closing tags. Example:

 

<p> blaa blaa</p>

 

The other thing is I need to remove all <p></p> tags containg some number, can be with spaces or without and with line breaks. Examples:

 

<p> 1</p>

 

<p>

1</p>

 

<p> 1

</p>

 

Can someone help me with this issue as I don't seem to get it :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.