We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79ddeb8 commit b93c215Copy full SHA for b93c215
lib/parse-tag.js
@@ -1,4 +1,4 @@
1
-var attrRE = /([\w-]+)|(['"])(.*?)\2/g;
+var attrRE = /([\w-]+)|(['"])([.\s\S]*?)\2/g;
2
3
// create optimized lookup object for
4
// void elements as listed here:
test/parse-tag.js
@@ -66,6 +66,19 @@ test('parseTag', function (t) {
66
voidElement: false,
67
children: []
68
});
69
+
70
+ tag = '<textarea placeholder=\'Hey Usher, \n\nAre these modals for real?!\' class=\'placeholder-value\'>';
71
72
+ t.deepEqual(parseTag(tag), {
73
+ type: 'tag',
74
+ attrs: {
75
+ placeholder: 'Hey Usher, \n\nAre these modals for real?!',
76
+ class: 'placeholder-value'
77
+ },
78
+ name: 'textarea',
79
+ voidElement: false,
80
+ children: []
81
+ });
82
83
t.end();
84
0 commit comments