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.

ngSanitize linky filter incorrectly converts query key html entities to entity numbers. #10565

@KurtWagner

Description

@KurtWagner

URL query parameters like &center= have the &cent part converted to ¢, which results in ¢er=

For example:

'http://test.com/?arg=10&quote=10&center=10' | linky

Becomes

<a href="http://test.com/?arg=10&#34;e=10&#162;er=10">http://test.com/?arg=10&amp;quote=10&amp;center=10</a>

i.e, a link of

http://test.com/?arg=10"e=10¢er=10

See jsfiddle. Similar issue when using ngBindHtml (jsfiddle). So I'm guessing it all comes down to $sanitize (jsfiddle)

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions