Jump to content

Stripping colored text from standard text.


siopaeile

Recommended Posts

I'm pretty new to PHP, so I hope someone can point me in the right direction here. I'm trying to build a notetaking application. One of the things, I need to do is let someone paste formatted text into in input box. The input box must allow me to retain any formatting in the copied text.

 

Then, I want to extract any color highlighted text and put it into another box on the web page. I have attached picture to show you what I mean here.

 

screen.png

 

For the second part of this, all I can think of is using Regular expressions to extract the highlighted text. Any easier alternative? Any scripts for this already out there? Thanks.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.