Replace content of a div with its decoded content.
Hi; i would like to change the content of any div with the class ENCODED with the decoded content and replace the class ENCODED with DECODED than remove the class HIDDEN, here is an example.
I suppose my page have two div's with the class ENCODED, but in reality i can have just one or many (more than 2), so the result i want is :
Before the operation :
-
<div class="ENCODED HIDDEN">VGhpcyBpcyBhIHRleHQ=</div>
-
...
-
<div class="ENCODED HIDDEN">VGhpcyBpcyBhIHRleHQgYW4gb3RoZXIgdGV4dA==</div>
After the operation :
-
<div class="DECODED">This is a text</div>
-
...
-
<div class="DECODED">This is an other text</div>
Thank you very mush