malikah Posted December 17, 2007 Share Posted December 17, 2007 Hi, I would like to copy and paste text that has been formatted (some words are bolded and underlined) from a webpage into a text area and have it display correctly when viewed in html again. It will also be stored in a MySQL database. Quote Link to comment Share on other sites More sharing options...
lemmin Posted December 17, 2007 Share Posted December 17, 2007 You can simplify this process with regular expressions: http://www.regular-expressions.info/ Find a specific HTML tag and replace it with preg_replace: http://www.php.net/manual/en/function.preg-replace.php Good luck! 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.