Form:Question: Difference between revisions
From Karteria DWRP Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 38: | Line 38: | ||
Function for making dw comments easily copyable | Function for making dw comments easily copyable | ||
<code lang="js" display="block">function encodeHtmlEntities(str) { | |||
<code lang="js" display="block"><div>function encodeHtmlEntities(str) { | |||
var encoded = $('<div/>').text(str).html(); | var encoded = $('<div/>').text(str).html(); | ||
return '<textarea>' + encoded + '</textarea>'; | return '<textarea>' + encoded + '</textarea>'; | ||
| Line 55: | Line 56: | ||
var encoded = $('<div/>').text($(comments).eq(i).html()).html(); | var encoded = $('<div/>').text($(comments).eq(i).html()).html(); | ||
$(comments).eq(i).html(encoded); | $(comments).eq(i).html(encoded); | ||
}</code> | }</code></div> | ||
</includeonly> | </includeonly> | ||
Revision as of 14:36, 14 December 2025
This is the "Question" form. To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.