we are working on a project, in which we need to appendChild and ReplaceChild within the PHP DOM, and then save the file.
PHP Code
<?php
$string = '<u>technical/u>';
?>
<html><head></head>
<body>
<div>Stack Overflow is great website for technical professionals.
<p>checking all of the websites</p>
</div>
<h1>Looking something new for a technical professional</h1>
</body>
</html>
we just want to replace $string with duplicated words like "technical" is used in and .
The final HTML code will be
<html><head></head>
<body>
<div>Stack Overflow is great website for <u>technical</u> professionals.
<p>checking all of the websites</p>
</div>
<h1>Looking something new for a <u>technical</u> professional</h1>
</body>
</html>
"` – Sam Sep 28 '12 at 08:28