Parses and converts to DOM the specified string containing markup usually to be inserted into the document.
The specified markup must not be a complete document and must be a well-formatted markup fragment.
This method does not perform caching, markup code is ever parsed from the scratch. Use with small markup fragments. For very small fragments use normal DOM methods and for big fragments use the fragment templating system.
Be careful with the security using this method when the string is constructed containing user data. For instance, a malicious user can add unexpected elements like <script>, <link> or <object>. This is not the recommended approach, insert user provided data using DOM APIs after this call.
@param code the markup to parse and convert to DOM
@return a document fragment with the result of parsing.