1

As taxonomy term name field supports only plain text, all I want is to use non-breaking space ( ) for taxonomy name. Just to achive better html layout.

  • What's the reasoning behind this? I've not heard of " " being a taxonomy of anything... perhaps you're trying to do something which could be achieved differently? Taxonomy for categorising things. – stevepurkiss Feb 17 '16 at 11:22
  • I added some details to make it clear). I created a views page to output all taxanomy term names in 4 column, so if the name is to long some words goes with new line. For example, THE ROOM IS NOT RESERVED. – FredMer Feb 17 '16 at 11:51
  • Taxonomy functionality should not be used for layout, it will break things. For example each taxonomy term has a URL. Investigate Drupal theming, there's lots on it around. Plus it's a really bad idea to fix your functionality to one specific output. Set up your taxonomy terms then use other more suitable functionality for displaying your taxonomy terms, like you are with a view. – stevepurkiss Feb 17 '16 at 11:55
1

Try using the check_plain function in your template file. Similar to what is shown in this example (which is for menu items though).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.