You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like to report a bug in html_editor.
Running this program:
use html_editor::parse;
fn main() {
let s = r#"
<div
> </div>
"#;
let dom = parse(&s);
println!("wrong: {:?}",dom);
let s = r#"
<div> </div>
"#;
let dom = parse(&s);
println!("good: {:?}",dom);
}
I get:
wrong: Err("<div\n> does not match the </div>")
good: Ok([Text("\n"), Element { name: "div", attrs: [], children: [Text(" ")] }, Text("\n")])
So, it seems that html_editor does not handle a newline as a space or tab where it should.
The example is with <div>, but the bug affects also other tags like <a>.
Regards, and thanks for the package,
Willem
The text was updated successfully, but these errors were encountered:
Hi,
I like to report a bug in html_editor.
Running this program:
I get:
So, it seems that html_editor does not handle a newline as a space or tab where it should.
The example is with <div>, but the bug affects also other tags like <a>.
Regards, and thanks for the package,
Willem
The text was updated successfully, but these errors were encountered: