Re: Re: Display wiki page as plain text?
It is more than just the search results, though. Since you can include wiki syntax in calendar events, when viewing calendar events in LIST mode, I'd want to remove the coding as well.
-Rick
> > How can I display the contents of a wiki without the wiki controls (i.e., as plain text)? For example, I want to strip out the wiki controls when:
> > *The site search function returns a wiki page
> > *Showing a wiki-formattted event in the calendar in LIST mode
>
> This seems like something that should be taken on by the Tiki devs — having wiki code show up as text in search results is not a good thing. This must be on the list for a future solution, but I don't know when. Seems like the way to go would be to wiki parse the wikitext that is displayed in search results, rather than to strip the syntax out, but that's not my call to make.
>
> In the meantime, I don't know a way to get the clean results you want. You can modify searchlip.php to limit the amount of a page that's quoted for the search results sample, which would reduce the problem of syntax showing, but would also reduce the usefulness of the search.
>
> — Gary