Step 4: Add Transforms
Next, you can optionally add Transforms to clean up any of the data returned by the API before loading it into Yext. For a full list of available Transforms, see the Transforms reference doc .
In the Video Titles and Descriptions, YouTube returns some HTML character references instead of actual characters (e.g., &
instead of “&“). We will add a “Find & Replace” transform to check for these HTML character references and swap them out with the corresponding characters.
For replacing &
with “&”, the transform would look like this:
We will also add transforms to find and replace the following:
'
with a single quote (‘)"
with a double quote (“)
Feedback
<% elem.innerText %>