Steps to reproduce:
- Add Dynamic Data List portlet to the home page.
- Click Add List, and select the Data Definition.
- In the pop-up window, add a new Data Definition with HTML field in it.
- Choose the new added Data Definition for the list, then save.
- Add a new record for the list.
- In the HTML field, type something includes apostrophe, then publish.
- Back to the record, click (Preview), causes a console error.