Hi EveryBody

I Am A Web developer working in PHP. I Am Using A WSYGIG rich text editor in my web page.
the value i am recieving in it is in css styles like span-style font-weight:bold for applying bold tag. but i want to use only <b></b> tags for bold and <i></i> for italics

but when we user execCommand it applies span style tags..

can any one tell me how to use <b></b> instead of span style

Don't!

The b and i tags are scheduled for deprecation. If you use them, the page will have to be changed in the future.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.