Trevixal API
    Preparing search index...

    Function safeCSSValue

    • Allow only simple, self-contained CSS values in style attributes. Anything that could open a new declaration, call url() or smuggle script is rejected outright rather than escaped.

      Parameters

      • value: unknown
      • maxLength: number = 120

      Returns string | null