This file contains 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
# Usage: | |
# import html_sanitizer | |
# safe_html = html_sanitizer.secure_html( raw_html_string) | |
import tidy | |
import re |
This file contains 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
/*Javascript snippet to use HTML5 localStorage easily. | |
Properly handles situation like 'localStorage not being supported by the browser' and excedding localSorage quota. | |
Supports storing any kind of data */ | |
/*key should be String, value can be any Javascript object */ | |
function writeToLocalStorage(key,value) | |
{ | |
if(typeof(Storage) == 'undefined') | |
{ |
This file contains 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Hello FB</title> | |
</head> | |
<body> | |
<div id="fb-root"></div> | |
<div id="fb-content"></div> | |
<div> |