serializePseudoAttributes

Type: Function

How to get serializePseudoAttributes?

JavaScript

import serializePseudoAttributes from 'fontoxml-dom-utils/src/serializePseudoAttributes.js'

Serialize an object to a pseudoAttributes string PseudoAttributes are an approach to have attributes in for instance processing instructions.

Only objects containing the primary data types String, Number or Boolean are supported. They will, however all be coerced to strings. Prototypes of the inputted object will not be handled. Please use only Object.create(null) like object as inputs

Only quotes and backslashes will be escaped.

The pseudo attributes will be sorted alphabetically.

Arguments

  1. deserializedAttributes

    (Required)

    Type: Object

    The deserialized attributes which must be serialized

Returns

Type: String

The serialized representation of the given pseudoAttributes