Robbie Averill 55eb7ebdcc FIX Do not insert requirements more than once in includeInHTML
This change consolidates the string replacements used to insert requirements into the page content to help ensure
that they are not compounding and overwriting eachother.

The added test case includes where a user may have a Javascript snippet that contains a closing head tag, and the
test ensures that it does not get injected with requirements as well as the actual head tag in the DOM.
2017-04-07 17:04:17 +12:00
..
2016-01-07 10:15:54 +13:00
2016-11-29 11:39:58 +00:00
2014-08-19 09:17:15 +12:00
2016-05-04 12:05:02 +12:00
2016-01-07 10:15:54 +13:00
2017-03-03 14:54:29 +00:00
2014-08-19 09:17:15 +12:00
2016-06-13 12:30:33 +01:00