Invisible Text
Detect and prevent invisible or hidden text in outputs. Guard against manipulation or misuse.
Last updated
Was this helpful?
Was this helpful?
evaluator.add_test(
test_names=["invisible_text_guardrail"],
data={
"prompt": ["This is a test string with a ︇︇z︇ero width space","This is a test string without invisible text and a ︇︇z︇ero."],
},
).run()
Result = ["This is a test string with a TAG LATIN CAPITAL LETTER G zero width space", "This is a test string without TAG COMMERCIAL AT invisible text and a TAG LATIN CAPITAL LETTER G zero."]evaluator.add_test(
test_names=["invisible_text_guardrail"],
data={
"prompt": "This is a test string with a \u200b zero width space",
},
).run()
evaluator.print_results()