Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

convert break line into plain sms text #41

Closed
datomnurdin opened this issue Oct 10, 2014 · 5 comments
Closed

convert break line into plain sms text #41

datomnurdin opened this issue Oct 10, 2014 · 5 comments
Labels

Comments

@datomnurdin
Copy link

Hi, I just got this issue. How I can send plain sms text without <br/> ?

My message value is

Your TAC number was
<br/ >
<br/ >
stole!!

What I want is like this

Your TAC number was

stole!!

How possible is that?

@agarrharr
Copy link
Owner

Sms messages aren't sent using html, so you probably need to use

\n

or

\r

instead of the

<br />

tag.

@datomnurdin
Copy link
Author

I already use \n but still not working, it will convert into <br/>. My JSON data,

{"success":1,"rule":[{"ruleId":"15","fbId":"10203590671300552","name":"TAC grabber","message":"Your TAC number was \r\n\nstole!!","fromDate":"2014-10-07","toDate":"2014-10-07","fromTime":"11:11:00","toTime":"11:11:00","keyword":"tac"}]}

@datomnurdin
Copy link
Author

so how to solve it?

@agarrharr
Copy link
Owner

Please see issue #53

@dbaq
Copy link

dbaq commented Feb 5, 2015

let's follow up there: cordova-sms/cordova-sms-plugin#6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants