Changed the replace to a replace all in the extension replacement for starttag and endtag.