<div>There is an added complication with a link in a node in that when the node is presented as a teaser, it will already be a link to the full node page. Because of this we can only implement the hyperlinks when the browser is on the full node page.
</div>
<div>&nbsp;</div>
<div>If we assume the simplest situation where the <strong>whole node</strong> is a link,&nbsp;I would suggest using &quot;[&quot; and &quot;]&quot; as delimiters, something like this:</div>
<div>original node: <strong>text of node [url]<br></strong>on node page after processing: <strong>&lt;a href=&quot;url&quot;&gt;text of node &lt;/a&gt;</strong></div>
<div>on teaser page after processing:<strong> text of node</strong></div>
<div>&nbsp;</div>
<div>In a more complex situation where you want arbitrary words in the node to be hyperlinked, you can extend the sytax slightly with something like:</div>
<div>original node: <strong>This is my node [with linked text:url] in it</strong><br>on node page after processing: <strong>This is my node &lt;a href=&quot;url&quot;&gt;with linked text&lt;/a&gt; in it</strong> 
<div>on teaser page after processing: <strong>This is my node with linked text in it</strong></div><br>I haven&#39;t yet written the specific regular expressions you would need for the above syntax. Sometimes it is best to adjust the sytax to make it easy to write the regex.
</div>
<div>&nbsp;</div>
<div class="gmail_quote">On Jan 20, 2008 9:40 AM, Walt Daniels &lt;<a href="mailto:wdlists@optonline.net">wdlists@optonline.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I also need this but what I need is a link. Perhaps [text:url] or something<br>similar could be changed to &lt;a href=&quot;url&quot;&gt;text&lt;/a&gt;. Is this secure, given
<br>that text:url has been though checkplain?<br>
<div>
<div></div>
<div class="Wj3C7c"><br>-----Original Message-----<br>From: <a href="mailto:development-bounces@drupal.org">development-bounces@drupal.org</a> [mailto:<a href="mailto:development-bounces@drupal.org">development-bounces@drupal.org
</a>]<br>On Behalf Of Yuval Hager<br>Sent: Sunday, January 20, 2008 12:12 AM<br>To: <a href="mailto:development@drupal.org">development@drupal.org</a><br>Subject: Re: [development] HTML in node titles for D5<br><br>On Sunday 20 January 2008, Andrew ft wrote:
<br>&gt; Please tell me if this is a bad idea, but how about this as a solution:<br>&gt; If you are only interested in minimal markup, like the ability to use the<br>&gt; &lt;em&gt; tag, what about using a special character to indicate it in the node
<br>&gt; title, and then processing the title at the theme layer (for example with<br>a<br>&gt; regular expression) to convert the characters into tags.<br>&gt; For example, you could use Hello *World!* as the node title and then
<br>&gt; convert this with a simple regular expression to Hello &lt;em&gt;World!&lt;/em&gt;<br>when<br>&gt; the node is rendered.<br>&gt; This would have the added advantage of keep clean the RSS feed from the<br>&gt; node. It would also be much shorter than putting markup in the title,
<br>&gt; bearing in mind the 255 char limit.<br>&gt; Would this be classified as a hack?<br>&gt;<br><br>That&#39;s a very good idea! It has the advantage that in all places that output<br><br>check_plain($node-&gt;title) will show a reasonable string after all.
<br>As long as the required markup is limited - this is the most elegant<br>solution<br>I&#39;ve seen!<br><br>Thanks,<br><br>--yuval<br><br></div></div>No virus found in this incoming message.<br>Checked by AVG Free Edition.
<br>Version: 7.5.516 / Virus Database: 269.19.7/1233 - Release Date: 1/19/2008<br>6:37 PM<br><br><br><br>No virus found in this outgoing message.<br>Checked by AVG Free Edition.<br>Version: 7.5.516 / Virus Database: 269.19.7
/1233 - Release Date: 1/19/2008<br>6:37 PM<br><br><br></blockquote></div><br>