You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If line breaks are added in the Course Description field for Course pages, those line breaks are output in the JS that powers the search. You'll receive the following error in the developer console when attempting to search:
tipuesearch_content.js:6
Uncaught SyntaxError: Invalid or unexpected token
Workaround
Sanitize the Course Description field for JSON in the _cms/formats/velocity/search-content-js Format.
Description
If line breaks are added in the Course Description field for Course pages, those line breaks are output in the JS that powers the search. You'll receive the following error in the developer console when attempting to search:
Workaround
Sanitize the Course Description field for JSON in the
_cms/formats/velocity/search-content-js
Format.Setting the variable on Line 10:
Output on Line 18:
Macro:
The text was updated successfully, but these errors were encountered: