| Render an "Addescaped single quote Page"character. | <a linkhref="#addPage" foronclick="
WPCAPI.showAddPageDialog(
'bob\'sPage', 'Bob\'s Page'
);
">Add a Page</a> |
| Render a cellsingle quote decimal reference, withescaping the followingleading attributes:cellId:"&". foo'sbarcellDisplayName:Ordinary TheHTML/XML Officialescaping Foo'swill Barconvert PageCorrectsingle renderedquotes code:to decimal references. | <a href="#addPage" onclick=" WPCAPI.showAddPageDialog( 'bobdecodeURIComponent('foo%27\'sbar')sPage', 'BobdecodeURIComponent('The%20Official%20Foo%27\'s%20Bar%20Page'));">s Page' ); Incorrect rendered">Add code:a Page</a> |
| Render a single quote hex reference. URL encoding will convert single quotes to hex references, but an additional JavaScript call will be necessary to decode the string before passing it to the listener. | <a href="#addPage" onclick=" WPCAPI.showAddPageDialog( decodeURIComponent(decodeURIComponent('foo'bob'%27sPage')sbar'), decodeURIComponent('The OfficialdecodeURIComponent('Bob%27s FooPage'') s); ">Add Bara Page'));">Page</a> |