summernote 0.7.0 convert source html like PHP htmlentities function
See original GitHub issue0.7.0 Release is not working correctlly. For example, in this example: “examples/codemirror.html”
summernote convert source html in textarea like PHP htmlentities function, and in code view shows as encoded html.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>summernote</title>
<!-- include jquery -->
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<!-- include libraries BS3 -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" />
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" />
<!-- include codemirror (codemirror.css, codemirror.js, xml.js, formatting.js)-->
<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.min.css" />
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/theme/blackboard.min.css">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/theme/monokai.min.css">
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/xml/xml.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/codemirror/2.36.0/formatting.min.js"></script>
<!-- include summernote -->
<link rel="stylesheet" href="../dist/summernote.css">
<script type="text/javascript" src="../dist/summernote.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.summernote').summernote({
height: 200,
tabsize: 2,
codemirror: {
theme: 'monokai'
}
});
});
</script>
</head>
<body>
<textarea class="summernote"><p>Seasons <b>coming up</b></p></textarea>
</body>
</html>
I have tried examples of summernote 0.6.16 release, and In this version this bug is absent. Have screenshots with this bug:
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
Examples - Summernote
Super Simple WYSIWYG Editor on Bootstrap Summernote is a JavaScript library that helps you create WYSIWYG editors online.
Read more >Summernote content coming with html tags - Stack Overflow
Use val() to get all what entered in textarea or text, So : var content = $("#summernote").val().
Read more >node packages | Corvid by Wix
csv-converter-to-pdf-and-html. 1.0.2. available. 12/28/2022 ... @firebase/functions ... 0.7.0. available. 05/22/2022. @solana/web3.js. 1.41.3. available.
Read more >Notices_BigFix_Compliance_V1... - HCL BigFix Support
MIT hotkey-1.2.0.js An open source front-end implementation that help ... MIT htmlentities-4.3.4.gem A module for encoding and decoding (X)HTML.
Read more >Open Source Used In DNAC Platform Frey - Cisco
With respect to the free/open source software listed in this document, ... 1.241 babel-plugin-transform-function-bind 6.22.0 6.22.0.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Im getting problems with it too… but the i cant find a way to solve it…
My codeEditor returns the pure Html
-> <u><i>test with new <b>question</b></i></u>
how can i solve it ??
$(‘#summernote’).summernote(‘code’, ‘html_tags_string_from_db’); Add this script if you want to re-edit and wish to get it purely decoded as html.