Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$sanitize Bug #10943

Closed
Closed
@SimeonC

Description

@SimeonC

I have found a bug whereby script and style tags with newlines in them are not correctly removed.
Demo here: http://codepen.io/anon/pen/pvWWjz

Example Snippet:

<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Times; color: #232323; -webkit-text-stroke: #232323}
</style>
<script type="script/javascript">
function bad(){return false;}
</script>

<p>This Should be the first content!!</p>

First discovered over at textAngular: textAngular/textAngular#533

I'm going to investigate a bit more and I'll post up if I can figure a solution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions