Adding HtmlEncode to Wikitext returned from getGuidanceItemHtml and fixe...

...d search and replace regex (added the /g to change all occurrences of the search string)

Fixes Issue #600