Jquery html vs. str.replace

This PR closes #728 and #729

#729 Requires a documentation change, also in this PR.