safaehIsolateBidi function

String safaehIsolateBidi(
  1. String text
)

Unicode FSI (U+2068) / PDI (U+2069): isolate user-generated content inside mixed-direction strings (e.g. "$title – $amount", translated templates).

Display-only — never persist the result.

Implementation

String safaehIsolateBidi(String text) => '\u2068$text\u2069';