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. Link to comment https://forums.phpfreaks.com/topic/82072-solved-copy-all-formats-in-text/ 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! Link to comment https://forums.phpfreaks.com/topic/82072-solved-copy-all-formats-in-text/#findComment-417136 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.