What is Clean Word HTML ?

What is Clean Word HTML ?

by George Kao -
Number of replies: 5

Of all the cool features of Moodle's HTML editor, the most mysterious one (to me) is "Clean Word HTML".

I found a short explanation here which says "use to remove unnecessary code in HTML pasted from Microsoft Word." 

Can we just click on that icon, or do we need to highlight the whole post before we click on the icon, to clean up the HTML?

Any other tips on using this feature?

Thanks!

Average of ratings: -
In reply to George Kao

Re: What is Clean Word HTML ?

by Janne Mikkonen -
You just click the button smile It'll check the entire text in the editor. Editor also "cleans" the content when you'll paste content with ctrl + v.

- Janne -
In reply to Janne Mikkonen

Re: What is Clean Word HTML ?

by ahmed ali -

I want to know the code of clean html button please ......

thank you ......

In reply to ahmed ali

Re: What is Clean Word HTML ?

by Janne Mikkonen -
htmlarea.php line 967 starts HTMLArea.prototype._wordClean

- Janne -
In reply to Janne Mikkonen

Re: What is Clean Word HTML ?

by ahmed ali -

blushblushblushblush

thank you Janne

but you know I am new in this moodle (( forums)) , can you give me the link to htmlarea.php

thank you again

blushblushblushblushblushblushblush

In reply to ahmed ali

Re: What is Clean Word HTML ?

by Janne Mikkonen -
I won't ruin the experience of exploring the web for you, but I'll give you a hint: Latest CVS code big grin