Refs #5163. Added js unit tests for elgg.parse_str.