first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
@@ -0,0 +1,17 @@
use warpui::browser::escape_html_attribute;
#[test]
fn escape_html_attribute_escapes_attribute_breakout_characters() {
assert_eq!(
escape_html_attribute("\" onload=\"alert(1)\" data-x='><script>alert(1)</script>&"),
"&quot; onload=&quot;alert(1)&quot; data-x=&#39;&gt;&lt;script&gt;alert(1)&lt;/script&gt;&amp;"
);
}
#[test]
fn escape_html_attribute_leaves_safe_text_unchanged() {
assert_eq!(
escape_html_attribute("embedded warp block"),
"embedded warp block"
);
}