This file exists to give to this gist a proper name.
This implementation was developed for Storj Labs and is part of some of their systems, however, it isn't at this time used, so they will likely remove it.
I've kept it in this gist for future reference.
Storj labs licensed this code under the GNU Affero General Public License v3.0.
This code was copied on 2022-06-30 from the repository hosted on
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
This file exists to give to this gist a proper name. |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 | |
(http://www.wtfpl.net/about/) | |
Copyright (C) 2015 Ivan Fraixedes (https://ivan.fraixed.es) | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
package main | |
// HTMLUnescape replace from src the sequence of bytes \u003c, \u003e, \u0026, | |
// \u2028, \u2029 by their representative characters <, >, &, U+2028, U+2029. | |
// Mostly it's does the reverse result of the HTMLEscape function present in | |
// encoding/json package of the standard library. | |
// | |
// The function receives a byte slice for avoiding string allocations during the | |
// replacement besides it modifies src and returns it. | |
func HTMLUnescape(src []byte) []byte { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
I hereby claim:
- I am ifraixedes on github.
- I am ifraixedes (https://keybase.io/ifraixedes) on keybase.
- I have a public key ASClYCP0Qc1dyx-BI3pJi4N2TDIy-TEVxErkswhvm5RyJwo
To claim this, I am signing this object:
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 | |
(http://www.wtfpl.net/about/) | |
Copyright (C) 2015 Mario Mendes (@hyprstack) | |
Copyright (C) 2015 Ivan Fraixedes (https://ivan.fraixed.es) | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. |
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
Show hidden characters
{ | |
"env": { | |
"development": { | |
"presets":["es2015-node5"], | |
"plugins": ["transform-async-to-generator"] | |
} | |
} | |
} |
NewerOlder