Expand description
Untrusted web-text wrapping: external text reaches a model only inside a
tamper-evident boundary that declares it data, never instructions.
Ported from CodeRight browser_fetch::wrap_untrusted_web_text.
Structs§
Constants§
Functions§
- injection_
signals - Cheap heuristics for common instruction-override phrasing. Advisory only.
- truncate_
utf8_ with_ marker - Truncate to at most
maxbytes on a char boundary and append a marker. - wrap_
untrusted_ web_ text - Wrap text under default options.
- wrap_
untrusted_ web_ text_ with