Skip to content
Snippets Groups Projects
Commit 597a8c81 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[htmlmixed mode] Strip whitespace from attribute values

Closes #4147
parent 6d1379e2
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@
function getAttrValue(text, attr) {
var match = text.match(getAttrRegexp(attr))
return match ? match[2] : ""
return match ? /^\s*(.*?)\s*$/.exec(match[2])[1] : ""
}
function getTagRegexp(tagName, anchored) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment