Drupal no www. compound

how can i turn off automatic conversion of WWW.SOMETHING to link in Drupal?

I just want to display the url without creating one like this.

This must be done on the page, as some pages are supposed to act as links.

is there a special TAG or something to say DRUPAL so as not to convert it to composable text?

+2


source to share


3 answers


The automatic conversion of URLs to links is handled by the "input format" specified for node.



To avoid this for a specific node, create a new input format in which URL Filter is not enabled.

+8


source


You can change the input format. Create one that matches your standard and remove the URL filter (which is responsible for this). Then you can choose it as the input format for just one node if you like.



+3


source


Input format is probably the best solution, but the quick and dirty trick I used on the rare occasion I needed to break auto-linking was to break the non-url with formatting tags.

For example, if Drupal converted www.foobar

to link, I would encode the text like this:

<i>www</i>.foobar

Not really, but I'm doing the job if you're okay.

0


source







All Articles