CuteEditor with PasteBehavior='PastePureText' still allows some markup

  •  08-30-2009, 5:11 AM

    CuteEditor with PasteBehavior='PastePureText' still allows some markup

    Hi!
     
    We are using the CureEditor in PastePureText mode.
    When users paste in some text with html formatting, some html tags are not erased.
     
    Example of html: 
    <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 13.0px Arial Unicode MS; color: #0000ff"><span style="letter-spacing: 0.0px">How many times have you woke up and thought, I really don’t have the energy or motivation to get up, how many times have you felt like there is no point on working so hard as when you do, you don’t get the outcome you may deserve? How many times have you stopped and thought, do you really make a difference? How many times have you stopped and thought, are you were you wanted to be? To add to this, why do people seem to find these best times to hurt you?&nbsp; These will be the real moments in your life.</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 12.0px Helvetica; color: #0000ff; min-height: 14.0px"><span style="letter-spacing: 0.0px"></span><br /> </p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 13.0px Arial Unicode MS; color: #0000ff"><span style="letter-spacing: 0.0px">The moments where you just feel like you just can’t get up. I will let you in to a secret, the fact you have acknowledge that you feel like that and that you want some change means your already half way up. Acknowledgment means you have identified the problem, which means you have also identified the solution. I recently came across an experience where I felt like I could not get up, I knew what the problem was but the solution at the time was not the right one. I had to get myself up. How did I do this? How can any one do this? Simple really, it’s just a matter of balance. Every bad thing that brings you down, think about a good balance. This can often be the opposite. You may have had your heart broken and feel really down, so what you do is this think about your great qualities, friends are great support for this, think about the reasons and ways in which you can make people happy, dig deep and find that confidence in your self, because once you do this you will see that its all so much better then you realise.</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 12.0px Helvetica; color: #0000ff; min-height: 14.0px"><span style="letter-spacing: 0.0px"></span><br /> </p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 13.0px Arial Unicode MS; color: #0000ff"><span style="letter-spacing: 0.0px">As cliche as it may sound each experience you take will make you stronger, each bad experience prepares you more in life. It doesn’t matter your nationality, background, life experience, race, gender or age, there is one thing we can all aim to achieve, something that can only come with time, that is wisdom. So think about your current situation, are you down and lost or up and found? If your lost, you just need the right direction to be found, and if you are found, embrace and remember how you feeling now for the next time something knocks you down as this will be the biggest motivator.</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 13.0px Arial Unicode MS; color: #0000ff"><span style="letter-spacing: 0.0px">Perseverance is key, belief is essential and faith in yourself is crucial.</span></p>
     
    I've tried out this html at your demo page http://cutesoft.net/example/editor-onpaste.aspx.
    And it doesn't remove the html tags also.
View Complete Thread