GithubHelp home page GithubHelp logo

Comments (13)

Inndy avatar Inndy commented on July 17, 2024 1

https://codepen.io/anon/pen/wEEBor
https://codesandbox.io/s/64xo8n4163

Can't reproduce with latest [email protected]

from vue-clipboard2.

Inndy avatar Inndy commented on July 17, 2024 1

Use item.textContent instead, or you will get HTML entity encoded string.

from vue-clipboard2.

Inndy avatar Inndy commented on July 17, 2024

Please give me a minimal reproduction

from vue-clipboard2.

ctf0 avatar ctf0 commented on July 17, 2024

try something like

let txt = 'abc => test'

// now try to copy it 
this.$copyText(txt)

paste the data and check the output.

from vue-clipboard2.

ctf0 avatar ctf0 commented on July 17, 2024

found more info & docs
and the reason

text: function () { return text },

from vue-clipboard2.

ctf0 avatar ctf0 commented on July 17, 2024

@Inndy any update ?

from vue-clipboard2.

Inndy avatar Inndy commented on July 17, 2024

I'm busy these days, it would take some efforts to fix this due to it must add a new DOM to current document body. It may cause some problem (like triggering unwanted event callback or something else). I will try to fix $copyText later.

from vue-clipboard2.

ctf0 avatar ctf0 commented on July 17, 2024

all good, does it require any extra config or usage is the same ?

from vue-clipboard2.

Inndy avatar Inndy commented on July 17, 2024

As you can see, latest release was made at Jul, and I did not change any code. Just use it as the same.

BTW, I had added eslint to this project, so perhaps we can have less silly bug like #36.

from vue-clipboard2.

ctf0 avatar ctf0 commented on July 17, 2024

oh am sorry, totally forgot its the already released version,

am using with this.$copyText() maybe the usage is different than the normal ?

from vue-clipboard2.

Inndy avatar Inndy commented on July 17, 2024

I think you should check your code if Laravel already did the HTML entity encode.

from vue-clipboard2.

ctf0 avatar ctf0 commented on July 17, 2024

actually laravel has nothing to do with it, i simply use this.$copyText(item.innerHTML)

from vue-clipboard2.

ctf0 avatar ctf0 commented on July 17, 2024

awesome, many many thanx for the quick help 🏆

from vue-clipboard2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.