Hello list,

after I can successfully edit pages via API function I want to send
text content with pipe characters.

It works as long this characters is not at the beginning of a line.
(but most formulars work in that way)

Leading pipe " | " sign is ignored.


My script looks like:

content="content|pipe|content
|newline
|newline"

wget ..... --post-data "action=edit&title=pagename&text=$content&token=


The result looks like:
content|pile|content
newline
newline



Can anybody help me how to quote it?


Thanks
Andreas