π¨βπ»
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
var htmlparser = require("htmlparser2"); | |
var mystring = ''; | |
var parser = new htmlparser.Parser({ | |
onopentag: function(name, attribs){ | |
if(name === "b"){ | |
mystring += ">>>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
var htmlparser = require("htmlparser2"); | |
var mystring = ''; | |
var parser = new htmlparser.Parser({ | |
onopentag: function(name, attribs){ | |
if(name === "b"){ | |
mystring += ">>>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
var htmlparser = require("htmlparser2"); | |
var mystring = ''; | |
var parser = new htmlparser.Parser({ | |
onopentag: function(name, attribs){ | |
if(name === "b"){ | |
mystring += ">>>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
var htmlparser = require("htmlparser2"); | |
var mystring = ''; | |
var withTagObj = {}; | |
var finalObject = {}; | |
var isTagOpen = false; | |
var count = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
var text = "initial text <b>tag 1 ka text</b> bwala word ka text <b>tag 2 ka text</b> left off text"; | |
var HtmlParser = function(textToParse, tagToPick) { | |
var openTag = tagToPick; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
var util = require('util'), | |
twitter = require('twitter'); | |
var twit = new twitter({ | |
consumer_key: 'ht0SGPbwWzA0SB4qxndNTcBZZ', | |
consumer_secret: 'Zx7PeBRebQSjMnA2GmOJWH1ylnBZn9J4ATjnmeGkD7cPD77dYd', | |
access_token_key: '120410501-4gcebUBRFOhidX3kFMditXvcqGwTUrl4i44KNah6', |