Destramic Posted October 11, 2014 Share Posted October 11, 2014 im using dom to tidy up my html but i wondering is there a way to format my html like so <dl> <dd> <label>Condition :</label> <select name="condition"><option value="New">New</option> </dd> </dl> insead of <dl> <dd> <label>Condition :</label> <select name="condition"><option value="New">New</option> </dd> </dl> here is the php im using $dom = new DOMDocument(); $dom->loadHTML($this->_body); $dom->formatOutput = true; echo $dom->saveHTML(); thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.