'use strict';varGetIntrinsic=require('../GetIntrinsic');var$TypeError=GetIntrinsic('%TypeError%');varcallBound=require('../helpers/callBound');var$replace=callBound('String.prototype.replace');varRequireObjectCoercible=require('./RequireObjectCoercible');varToString=require('./ToString');varType=require('./Type');// https://www.ecma-international.org/ecma-262/6.0/#sec-createhtmlmodule.exports=functionCreateHTML(string,tag,attribute,value){if(Type(tag)!=='String'||Type(attribute)!=='String'){thrownew$TypeError('Assertion failed: `tag` and `attribute` must be strings');}varstr=RequireObjectCoercible(string);varS=ToString(str);varp1='<'+tag;if(attribute!==''){varV=ToString(value);varescapedV=$replace(V,/\x22/g,'"');p1+='\x20'+attribute+'\x3D\x22'+escapedV+'\x22';}returnp1+'>'+S+'</'+tag+'>';};