I'm loading an html snippet using
$("#TemplateDump").load("Themes/default.template", function() { processTemplate() })
The html i am loading contains
<div>
`hello ##name##, your age is ##age##.
your page is <a href="##website##">here</a>
</div>
I need to replace the ## placeholders with "joe","112" and "www.whatever.com". Is there a more jquery way of doing this rather than using straight javascript .replace? Are there any place holder replacement plugins around? using .replace in IE on the url placeholder just doesnt work either. Dont know why. By the way, the templates cant be changed.