I am working on a preprocessor that is analyzing a DSL. My goal is to remove the comments.
The block comment facility is demarcated by %% before and after. I do not have to worry about %% being in strings, by the definition of the language.
I am using this s/// regex. Unfortunately, it seems to match everything and wipe it out:
#Remove...
Hi there,
I am writing a comment-stripper and trying to accommodate for all needs here. I have the below stack of code which removes pretty much all comments, but it actually goes too far. A lot of time was spent trying and testing and researching the regex patterns to match, but I don't claim that they are the best at each.
My problem...
I am using YUI rich text editor on my website (php/mysql), so that a user may enter textual matter/articles through it. But if a user copies and paste some embed code in the textarea, from any video sites like youtube, it should get saved as a text block and not as a playing video when showing the text content on the browser. Now YUI aut...
I have a Perl program that is reading html tags from a text file. (im pretty sure this is working because when i run the perl program on the command line it prints out the HTML like it should be.)
I then pass that "html" to the web page as the return to an ajax request. I then use innerHTML to stick that string into a div.
Heres the pr...
I have a javaScript that calls a function:
var combineddata = jQueryGetHtml();
The function is:
// Get ALL of the HTML using jQuery
var jQueryGetHtml = function()
{
var htmlStartTag = function()
{
return $('html').contents();
var attrs = $('html')[0].attributes;
var result = '<!DOCTYPE HTML PUBLIC "-/...