Add QUnit tests for escapeContent and eachPost

Change-Id: If031bd381c819d45008d0802fe81ff14e3fedf03
Merge "Add QUnit tests for escapeContent and eachPost"