This commit is contained in:
Ilya Kantor 2019-05-15 11:10:07 +03:00
parent c709aa153b
commit 1072055fdc

View file

@ -12,4 +12,4 @@ let str = '<> <a href="/"> <input type="radio" checked> <b>';
alert( str.match(reg) ); // '<a href="/">', '<input type="radio" checked>', '<b>' alert( str.match(reg) ); // '<a href="/">', '<input type="radio" checked>', '<b>'
``` ```
Let's assume that may not contain `<` and `>` inside (in quotes too), that simplifies things a bit. Here we assume that tag attributes may not contain `<` and `>` (inside squotes too), that simplifies things a bit.