They allow a certain amount of salt to enter their cells, bringing the salt content of the water within the plant, to a slightly higher concentration than that of the surrounding seawater.
When water moves through the wall of a plant cell, it will move from the side containing water with the lowest amount of salt into the side containing the highest amount of salt.