<script> tags in <head> should be removed
icnocop opened this issue · 0 comments
icnocop commented
Hi.
Thank you for Html2Markdown.
Much like #20, <script> tags should be removed.
Steps to reproduce the problem
[TestMethod]
public void bug()
{
string html = @"<!DOCTYPE html>
<html>
<head>
<script src=""scripts/jquery.min.js"" type=""text/javascript"">
</script>
</head>
<body>
Hello World
</body>
</html>";
Converter converter = new Converter();
string markdown = converter.Convert(html).Trim();
Assert.AreEqual("Hello World", markdown);
}
Expected behavior
I expected the test to pass.
Actual behavior
Assert.AreEqual failed. Expected:<Hello World>. Actual:<<script src="scripts/jquery.min.js" type="text/javascript">
</script>
Hello World>.
Thank you.