Include
-
Hi,
I’m developing a plugin for Gravity Forms that converts URL’s entered into the the ‘list field’ to clickable links in the back end.
I’m doing this by storing the values in the database as an HTML link.
For example, if the user enters http://www.google.com
The plugin will store the value in the database as:
<a href="www.google.com">www.google.com</a>I need to display the link as a clickable link in the PDF created by this plugin. However I found that pdf-entry-detail.php at line 2002 escapes the HTML before it’s put in the PDF.
I agree that the HTML needs to be escaped to stop users breaking the PDF by entering in table tags like </td> or </table> – but I would like to ask if you could consider changing this to allow links.
The change would be – pdf-entry-detail.php – line 2002
FROM
$list .= '<td>'.htmlspecialchars($val).'</td>';TO
$list .= '<td>'.strip_tags($val,'<a>').'</td>';Please let me know if this is a possibility, otherwise I will need to consider my options (other ways of creating PDF’s, customising the plugin after each update/providing instructions on how to modify the plugin).
Thanks,
The topic ‘Include’ is closed to new replies.