Do escaping using regexps with /g insteadmaster
commit44f8f028d9fbb2f548f6ddd703c630ad01659626
authorMarius Storm-Olsen <git@storm-olsen.com>
Thu, 19 Feb 2009 06:37:57 +0000 (19 07:37 +0100)
committerMarius Storm-Olsen <git@storm-olsen.com>
Thu, 19 Feb 2009 06:37:57 +0000 (19 07:37 +0100)
treeb0ea31ef808c604ff1a753c765dba6aae49d7bb8
parent707f96f69a80ab7932e71d9d1fe0e08f5bc4aba4
Do escaping using regexps with /g instead

For some reason when using the normal string.replace("", ""), not
all the characters would be replaced. However, when using regexps
as the search term, the replace is successful.

This fixes the issue where some patches are suddently interpretted
as HTML code instead. For example, patches which contains XML tags
would be mangled before this fix.

Signed-off-by: Marius Storm-Olsen <git@storm-olsen.com>
content/overlay.js