Hi,
I want to make changes to word paste function of the rte.
As i understand it changes <p> tag to <div> tag with cleaning the style and class property and keeping the margins, but instead of this i want to replace all the tag beginin with <p ........... > with <br>.
I tried to use this;
.replace(/<\/?p[^>]*>/gi, '<br>')
but this replaced all the tags includes p, not the ones begining with <p
I think this is a regular expression and i don't know much about it, how can i replace <p anything here> with <br>?
Thanks...