Page MenuHomePhabricator

Hyperlink URLs from form input with <a href="URL">URL</a> after escape()ing
Open, LowPublic


all the templates need to show the file data fields as |safe for this, so be sure to call escape()

Event Timeline

@prnk28: If this is done, is there a reason to not change the task status to resolved?

I'll get these. @Aklapper the phabricator tasks are out of synch with the
other tasks in the etherpad and chat logs, but this one is still valid so
let me do this.

@prnk I am thinking of pulling all the templates into a single file with
string constants, but am afraid that would crash syntax highlighting
somewhere, so you please work on the scripts to POST to /ask or create -q
file sets for now while I get that part, please. Do you think we should
include the last N filenumbers with -d files when /inspect is given no
arguments, in addition to the summary statistics header? And to answer your
question about what pull-down menus have over checkboxes for categories,
I'm not sure.

Jsalsman lowered the priority of this task from High to Low.Jul 8 2016, 5:41 AM

Most of this is done in

But it still needs a better URL regexp, and "include the last N filenumbers with -d files when /inspect is given no
arguments, in addition to the summary statistics header" should probably happen, too

@Aklapper , we were wondering how hyperlinking of urls is handled on Phabricator. It seems to catch most urls. I am looking for a regex pattern that's stronger than the one we are already using in our project . Could you direct me towards any useful resources in this regard?

@Aklapper, @prnk28 is asking about regexps which match URLs with both
unicode and internal matched parentheses (as are relatively more common in
Wikipedia URLs) but also properly match a URL enclosed in external
parentheses. Here is what I found:

Would it be better to get the regex that the wikitext parser uses instead
of the one phabricator uses?

@prnk28: Not sure, sorry... Regex code is either in or . Maybe ask in #phabricator on Freenode IRC.

Aklapper added a subscriber: prnk28.

@prnk28: I am resetting the assignee of this task because there has not been progress lately (please correct me if I am wrong!). Resetting the assignee avoids the impression that somebody is already working on this task. It also allows others to potentially work towards fixing this task. Please claim this task again when you plan to work on it (via Add Action...Assign / Claim in the dropdown menu) - it would be welcome. Thanks for your understanding.