3
I pass some product instructions for an external charge service (website). On the screen of this site, the past messages are in the "description" field, inside an element h3
, which seems to have 25 spaces with flexible height.
I pass like this:
var descricao = "Codigo: " + codigoProduto + Environment.NewLine + "Nome: " +
nome + Environment.NewLine;
try
{
paymentRequest.Items.Add(
new Item(
"BASIC " + CodID,
descricao,
1,
valor
)
);
On the screen everything appears together in the same line of that field description.
However, the intention is to have an info on each line, for example:
Código: 1234
Nome: Daniel
This way it works but appears the br on the screen.
descricao = $"Codigo: {CodID} <br/> Nome: {nome}";
Source code of the page receiving the data:
<td>
<h3 title="Codigo: 1983 br / Nome: Daniel">Codigo: 1983 br
/ Nome: Daniel</h3>
Quantidade: 1<br />
Valor do item: R$ 6,00
</td>
The question tag already helps you identify which language you’re talking about. You don’t need to put it in the title.
– perozzo