Steps to reproduce as follows:
1. Add a new Web Content and name the title as MyTitle' (Notice the apostrophe is included).
2. Go to the home page, then add the Web Content Display portlet.
3. Select the Web Content which you just created.
4. The web content is loaded successfully, then Click On the "Edit" in the tool bar, and comes up error in console.
The reason for this is lack of escaping for the title.