I am trying to parse the html out of a specific div to save it with php into a SQL-database.
Working good so far. The html is valid xhtml, but html() makes <br> instead of <br /> and <img......> instead of <img...../> Is there a workaround to get the xhtml?