ngClipboard icon indicating copy to clipboard operation
ngClipboard copied to clipboard

Allow user to copy script tags also

Open bobsilon opened this issue 8 years ago • 0 comments

Hey there, Using textarea instead of span will allow us to use script tags in our copy string as below:

<script type="text/javascript">
    !( function( w, d ) {
        'use strict';
        var awesome = 'ngClipboard';
        console.log('Something awesome: ');
        console.log(w);
        console.log(d);
    })( this, document );
</script>

bobsilon avatar Jan 21 '17 08:01 bobsilon