replacePlatformMedium function
Implementation
String replacePlatformMedium(PlatformMediumType platformMediumType, String html,
String htmlReference, String url) {
var document = parse(html);
var newDocument = replaceMedium(
platformMediumTypeToHtmlMediumType(platformMediumType),
document,
kDocumentLabelPlatform,
htmlReference,
url);
var returnMe = newDocument.outerHtml;
return returnMe;
}