When selecting question details to be shown and using an wysiwyg editor and if you have a new line after the question, then the editor ads a
tag which is printed to the screen. I've added an array("html"=>true) into the l() parameters that generate the link to accept html.
line 1114 of faq.module should look like this (fixes it for me)
// Link to faq node.
else {
if (empty($anchor)) {
$question = l($node->title, "node/$node->nid", array("html" => true)); // <<< added html = true for link generation
}
else {
$question = l($node->title, "node/$node->nid", array("attributes" => array("name" => "$anchor", "id" => "$anchor")));
}
}
Comments
Comment #1
sleeves commentedThis isn't working for me. Just to make sure we're trying to do the same thing. I just want to be able to make part of my detailed question italic. Is this possible? Please help.
Comment #2
stella commentedI'm not going to add this in. Really no html should be present in the page title (which is what the detailed question can be). Also the above code snippet is insecure - $node->title is untrusted and needs to be sanitized if using html set to true.