Filter okf_itshtml5 remplaces & by &amp; in <script> tag

Issue #518 new
x x created an issue

After executing these commands...

#!

tikal -x -fc okf_itshtml5 Abs.htm
tikal -m -fc okf_itshtml5 -od od Abs.htm.xlf

... & is changed by & in od/Abs.htm

Tested with Rainbow 6.0.28

Abs.htm before :

<!DOCTYPE html>
<html>
<head>
  <title>Function Abs</title>
  <meta charset="utf-8">
</head>
<body>
  <script type="text/javascript">
  if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) // IE (4+) only
    function copyToClipboard(s){if (window.clipboardData && clipboardData.setData){clipboardData.setData("text", s + "\r\n");alert("Copied to clipboard");}}
  </script>
</body>
</html>

Abs.htm after :

<!DOCTYPE html>
<html><head>
  <title>Function Abs</title>
  <meta charset="windows-1252">
</head>
<body>
  <script type="text/javascript">
  if ((navigator.appName=="Microsoft Internet Explorer") &amp;&amp; (parseInt(navigator.appVersion)>=4)) // IE (4+) only
    function copyToClipboard(s){if (window.clipboardData &amp;&amp; clipboardData.setData){clipboardData.setData("text", s + "\r\n");alert("Copied to clipboard");}}
  </script>


</body></html>

Comments (1)

  1. Log in to comment