I have solved it this way:
From the page, I call the function and assign the content to a variable that you assign to a div.
conv + = '' + '' + '' + subDiscount + '' + '';
From the page I pick them up like this:
$('#myModal').on('show.bs.modal', function(e) { //Lo que sucede cuando abre el modal.
nameConv = $(e.relatedTarget).data().name; //Aqui tomo la variable nombre de convenio
desConvenio = $(e.relatedTarget).data().desc; descripcion
desDescuento = $(e.relatedTarget).data().des_desc; descuento descripcion
});