Table of contents

Why are newline characters not being rendered when displaying the barcode results in a textbox?

« Back to FAQ index

That is because in normal HTML, newline characters are not interpreted as they normally would, so newline characters in the barcode result will be ignored. To account for them, it’s best to either wrap the element used to display the result in a <pre> element, or manually replace each newline character with <br />. Please refer to this article for more details.

This page is compatible for:

Is this page helpful?

YesYes NoNo