Re: PHP functions to convert markup efficiently [message #183813 is a reply to message #183812] |
Thu, 21 November 2013 18:57 |
James Harris
Messages: 11 Registered: November 2013
Karma:
|
Junior Member |
|
|
"The Natural Philosopher" <tnp(at)invalid(dot)invalid> wrote in message
news:l6lk04$e54$1(at)news(dot)albasani(dot)net...
> On 21/11/13 18:30, James Harris wrote:
>> I am looking for a way to mark up text in a way that PHP would be able to
>> efficiently and quickly convert to HTML.
>>
>
> mark the text up with HTML!
No good. Too complex to vet, not secure (people other than me could add
markup) and would not allow enhanced functions that I anticipate needing to
add. It needs to be markup I can control.
>> I could either use an existing markup language or design a new one but I
>> wanted to know of which PHP functions would be ideal to use to process it
>> most efficiently. To a large extent that will guide the choice of markup
>> tags if I have to design it myself.
>>
>> For example, it looks like I could choose between PHP's expand(), fgets()
>> and regular expression handling.
>>
>> Of course, implemenations may differ slightly but, on average, are there
>> certain PHP approaches that could be expected to be faster than others?
>> What
>> is the accepted wisdom?
James
|
|
|