Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news.mb-net.net!open-news-network.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: inner outer html and appendchild Date: Mon, 29 May 2017 19:04:48 +0200 Organization: PointedEars Software (PES) Lines: 30 Message-ID: <5274343.lOV4Wx5bFT@PointedEars.de> References: <4N-dnWxtPtO7I7bEnZ2dnUU7-KPNnZ2d@westnet.com.au> Reply-To: Thomas 'PointedEars' Lahn NNTP-Posting-Host: 95.237.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: gwaiyur.mb-net.net 1496077489 6777 178.197.237.95 (29 May 2017 17:04:49 GMT) X-Complaints-To: abuse@open-news-network.org NNTP-Posting-Date: Mon, 29 May 2017 17:04:49 +0000 (UTC) User-Agent: KNode/4.14.2 X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. I know about the differences between innerHTML and appendChild but I'm > in a bit of a bind. If the uses passes a valid html element as a string > how do I add it to the document without needing to parse the sting or > contain it in a DIV? > > For example, the users passes (the dots are for brevity) > str = "."; > or > str = "

Text style='.'>

-- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.