$g(multiple words) should produce
<a href="http://www.google.com/search?q=multiple+words">
multiple words</a>. In other words, the spaces should
be URL encoded as pluses in the URL.
I spent some time looking into a fix. It doesn't seem
to be possible with a regex. See the thread I started at
http://regexadvice.com/forums/14513/ShowPost.aspx
My suggested fix.
$g(expr) ->
<a href="http://www.google.com/search?q=$h(${expr})">
${expr}</a>
where $h is a new kind of content filter, one that uses
a builtin function to URL encode the string.
Scott Hanselman
Macros and Templates
v1.9
Public
|
Date: 2009-06-08 13:30 <a href="<http://groups.google.com/group/buy-best-generic-valium>">buy |
|
Date: 2006-08-23 18:31 Logged In: YES |
| Filename | Description | Download |
|---|---|---|
| contentfilterchange.patch | Example Patch File | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2006-08-23 18:31 | glucopilot |
| resolution_id | None | 2006-08-23 18:31 | glucopilot |
| artifact_group_id | v1.8.3 | 2006-08-23 18:31 | glucopilot |
| assigned_to | nobody | 2006-08-23 18:31 | glucopilot |
| close_date | - | 2006-08-23 18:31 | glucopilot |
| File Added | 187364: contentfilterchange.patch | 2006-08-02 19:27 | glucopilot |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use