Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

Remove everything between <sup> tags

Hello,

I would like to remove all <sup> tags and EVERYTHING that is inside of them using PHP.  All other text should remain the same.

I have attached an example below of text I need <sup> tags removed from.

Thanks!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="shortcut icon" href="/favicon.ico" />
		<title>Page Title</title>
<body class="media ns-4 ltr pagebookshelf">
 
Hello World<sup id="_ref-1" class="reference"><a href="#_note-1" title="">[1]</a></sup>. <em>This</em> is a test<sup>2</sup>.
Goodbye<sup class="suppp">4<a href="#_note-5">5</a>6</sup>.
</body></html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ddrudik
ddrudik
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hankknight

ASKER

Thanks for the question and the points.