RestSharp RestRequest.AddParameter Carriage Return

Hi,

i am having an issue gettings ome formatting into the description.

I would like the description to look like the following:

 

HyperLink

------------------

Additional Data

 

I am using the following code to create the description

RestRequest request.AddParameter(strParamName, "TEST \r\n TEST");

The Result is TEST TEST. \r\n is being removed.

 

Any help would be highly appreciated.

 

Thanks.

 

-Alex

 

1
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
Комментариев: 2

Just found the solution by manually creating a description and reading into the c# programm.

HTML <br> Tag

is the solution.

 

1
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

This worked great for my needs. I also found that other HTML tags such as <b> worked as expected.

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Folllowing List for Post: RestSharp RestRequest.AddParameter Carriage Return
[this list is visible for admins and agents only]

Вверх
Didn’t find what you were looking for? Write new post