I want to insert a plain text angle bracket, like "<" in the node body, but it is replaced with "&lt;". This should not be so. I need plaintext angle brackets in order to output directed dot format for http://drupal.org/project/graphviz_filter , but this bug makes it impossible.

This is NOT related to input filters.

Steps to reproduce:
1. create new input format, and remove all filters.
2. create new node, with at least one angle bracket in the body.
3. change the body input format to the new (empty) input format.
4. save the node.
5. view page source

Comments

naught101’s picture

To clarify the above, I know it's not input filters because I have created an new input format with all filters disabled, and used that. Interestingly, <?php ... ?> tags get stripped from input. I don't know if that's related.

This is the same in computed fields. One interesting thing that I've noticed is that my computed field, which looks basically like:

$dot = custom_function_that_outputs_dot_format();
$output = "<pre>$dot\n" . graphviz_filter_process($dot ) . "</pre>";
$node_field[0]['value'] = $output;

Also has this problem (even though the dot output should be rendered before it's send back to the node) and spits out an error like :

Graphviz encountered an error while rendering to format png:
Error: /home/files/coding/drupal/drupal-6.13/sites/default/files/graphviz/7590c5c1dc11e68a38c3bb9f7f1e5597.dot:14: syntax error near line 14<br />context: 17 >>> - <<< &gt; 16 [ label = "members" ];

This is messing with my head..

heine’s picture

I cannot reproduce this on a fresh install of Drupal. A filterless input format correclyl outputs <

naught101’s picture

Status: Active » Closed (won't fix)

Ok, finally tested in konqueror, and this isn't actually happening at all. Sorry for the hassle, it appears that firefox is encoding loose angle brackets into HTML entities.