# Parse HTML and replace

**URL:** <https://forum.kirupa.com/t/parse-html-and-replace/190798>\
**Category:** web dev\
**Created:** [June 14, 2006, 7:42pm UTC](https://forum.kirupa.com/t/parse-html-and-replace/190798 "2006-06-14T19:42:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![petermdenton](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@petermdenton](https://forum.kirupa.com/u/petermdenton)\
**Post date:** [June 14, 2006, 7:42pm UTC](https://forum.kirupa.com/t/parse-html-and-replace/190798/1 "2006-06-14T19:42:45Z")

</div>

Hello,  
can anyone help me with a script (PHP hopefully) that can parse an html page and replace the code. For instance, I want to replace \<a href links with a button. Any ideas?
