Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="container">
  <div class="layer"></div>
  <div class="col">
    <h2>Escaping Special Characters</h2>
    <textarea name="" id="input" placeholder="Your text..."></textarea>
    <div class="deco"></div>
  </div><div class="col">
    <p id="output">
      <!-- Output here! -->

<!-- Goolge Font -->
<link href=",700i|Quicksand" rel="stylesheet">


                /* Global */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;

body {
  padding: 60px 0;
  font-family: 'Quicksand', sans-serif;
  background: #ECEFF1;

/* Encoder */
.container {
  position: relative;
  width: 80%;
  max-width: 620px;
  margin: 0 auto;

.layer {
  position: absolute;
  width: 90%;
  height: 80%;
  bottom: -5%;
  left: -5%;
  background: #B9D655;
    0px 3px 6px 1px rgba(0, 0, 0, 0.03),
    6px 16px 24px 1px rgba(0, 0, 0, 0.04),
    16px 28px 46px 1px rgba(0, 0, 0, 0.04);

.col {
  display: inline-block;
  position: relative;
  width: 50%;
  padding: 10px;
  background: #FFFFFF;
  vertical-align: middle;
    0px 6px 12px 1px rgba(0, 0, 0, 0.08),
    12px 34px 46px 1px rgba(0, 0, 0, 0.12),
    34px 58px 90px 1px rgba(0, 0, 0, 0.12);

.col:nth-child(2) {
  border-bottom: 5px solid #D7CC84;

.col:nth-child(3) {
  background: #2D3A4B;

.col h2 {
  margin: 0;
  padding: 20px 10%;
  font-family: 'Playfair Display', serif;
  line-height: 1.28em;
  color: #D7CC84;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .01em;
  text-align: center;

#output {
  width: 100%;
  padding: 10%;
  line-height: 1.4em;
  overflow-wrap: break-word; /* Force line break. */

#input {
  height: 245px;
  color: #788A94;
  border: none;
  outline: none;
  resize: none;

#output {
  height: 400px;
  margin: 0;
  color: #FFFFFF;
  overflow: auto;

/* Select color */
.col h2::selection,
#input::selection {
  background: rgba(255,255,255,.15);

.col h2::-moz-selection,
#output::-moz-selection {
  background: rgba(255,255,255,.15);

/* Scrollbar styling */
#output::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3) !important;
  border-radius: 10px !important;
  background-color: transparent !important;

#output::-webkit-scrollbar {
  width: 12px !important;
  background-color: transparent !important;

#output::-webkit-scrollbar-thumb {
  border-radius: 10px !important;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3) !important;
  background-color: #788A94 !important;

/* Breakpoint */
@media screen and (max-width: 600px){
  .col {
    display: block;
    width: 100%;

  .col:nth-child(2) {
    border-bottom: none;



Hi! Welcome to my little playground!

My name is Tobias Bogliolo. 'Open source' by default and always 'responsive',
I'm a publicist, visual designer and frontend developer based in Barcelona. 

Here you will find some of my personal experiments. Sometimes usefull,
sometimes simply for fun. You are free to use them for whatever you want 
but I would appreciate an attribution from my work. I hope you enjoy it.


$('#input').on('keyup change', function(){
  var input = $('#input').val(); //Get input.
  var inputEncode = encodeURIComponent(input); //Encode data.
  $('#output').text(inputEncode); //Output encode string.