[Pmwiki-users] Removing speech marks et al.
Patrick R. Michaud
Sat Dec 18 15:15:35 CST 2004
On Sun, Dec 19, 2004 at 04:18:37AM +1300, Robin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> More questions...
> How can I get the URL of a page as it is on the wiki? For example, I want the
> URL of the PmWiki.TextFormattingRules page so that it can be loaded as a tab.
$name = 'PmWiki.TextFormattingRules';
$url = FmtPageName('$PageUrl', $name);
> How can I slashify speechmarks (") that are in the text? XUL uses them as
> boundries (you can't seem to do the <textbox>...</textbox> thing that HTML
> does, it seems the content has to go in the value attribute).
If you're using double quotes around your HTML attributes, then the
double-quotes have to be HTML encoded. The easy way to do this is:
$str = str_replace('"', '"', $str);
> This one is a bit OT, but maybe someone knows...how can I ensure that text
> passed to a text box respects the newlines? Currently the text in the value
> field in the source is suitably newlined, however in the actual window it's
> one big line.
Ummm, there must be something strange happening there. AFAIR, PmWiki
doesn't do anything special to get <textarea> to honor newlines.
More information about the pmwiki-users