XF 2.1 How to make pre tags work in page node

LenKaiser

Active member
I have a page node that is a link to us page. I want to include some HTML that does not get parsed into actual HTML, but show as the code would when you use the BB Code tag "Code" where a person can copy and paste the code into their website. I've tried using the pre tag and it did not work, I also tried using a blockquote but that did not work either (kinda figured it wouldn't but hey why not). I'm actually using the code inside a widget on the page. The widget code is as follows:

Code:
<div class="boxinfo"><pre><a href="http://mysite.com" title="My Site Title">My Site Title</a></pre></div>
 
If anyone else runs into this problem I found a work around. For any "code" you may want to put you can use the

Code:
<textarea>Your HTML code here</textarea>
 
I've covered how to accomplish this here:

 
Yeah I tried all those things and it did not work. I had done a search before posting and forgot to include that I tried the stuff in that thread beforehand. I'm trying to do this in an HTML widget.
 
Back
Top Bottom