Character encoding / escaping in function calls

Error message

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'comment_node_forum_form' not found or invalid function name in drupal_retrieve_form() (line 844 of /var/www/


my question would be: How can I encode / escape special chars in string arguments?
General XPATH related documents on the net advise to use html syle encoding like
but that doesn't work for me.

I would like to achieve the following:
I have a table which contains vulnerability details. The vulnerability affects multiple hosts and I would like to list them in a cell. By default MT will add a new table row for all hosts. To avoid that I used the mt:join() function and it is working well, but I can't use CRLF as a separator.

I also tried the fn:codepoints-to-string() to insert the line break char but it seems like it is not implemented.

Thanks for any help in advance.



Hehe the browser is interpreting my example html newline char instead of showing it. What a surprise... :)

Indeed, looks like there is no way to use a line break as a separator in mt:join(). We are using XPath 1.0, so there is no codepoints-to-string().

I am going to create a bug report for this. mt:join should handle /n /r and other similar escape sequences.

Thanks for your response!

Add new comment

Please answer the question to prove that you are not a spammer. If it isn't working and you are not a spammer, please email us.
Fill in the blank.