iarp Posted September 30, 2008 Share Posted September 30, 2008 Hey, in the database: <div id="legal"> <a href="/tos/">Terms of Service & Use</a> | <a href="/privacy/">Privacy Policy</a> </div> Whenever i try to display this entry from the database in an <input> as such: <label>Legal:</label> <input class="config-input" type="text" name="legal" value="' . $config['legal'] . '" /><br /> The first quote " screws everything up on the page. What must i change? Quote Link to comment https://forums.phpfreaks.com/topic/126389-solved-escaping-data-properly/ Share on other sites More sharing options...
discomatt Posted September 30, 2008 Share Posted September 30, 2008 Trying to put html into an input box? htmlentities() or htmlspecialchars() Quote Link to comment https://forums.phpfreaks.com/topic/126389-solved-escaping-data-properly/#findComment-653592 Share on other sites More sharing options...
iarp Posted September 30, 2008 Author Share Posted September 30, 2008 Thanks Quote Link to comment https://forums.phpfreaks.com/topic/126389-solved-escaping-data-properly/#findComment-653597 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.